package com.lenovo.leos.letools;

import com.lenovo.leos.letools.db.FileUploadEntity;
import com.lenovo.leos.letools.db.FileUploadService;

import android.test.AndroidTestCase;
import android.util.Log;

public class TestFileUploadService extends AndroidTestCase{

	public void testSave(){
		FileUploadService up = new FileUploadService(this.getContext());
		up.save("c:/dd/cc/tt.txt",12,"237482975754","238493485452","/mnt/sdcard/aa/ee","38388jdjf","https://www.vips.com");
	}
	
	public void testUpdateBlockPosition(){
		FileUploadService up = new FileUploadService(this.getContext());
		up.updateBlockPosition("c:/dd/cc/tt.txt",150);
	}
	
	public void testGetData(){
		FileUploadService up = new FileUploadService(this.getContext());
		FileUploadEntity fue = up.getFileTaskByWholePath("c:/dd/cc/tt.txt");
		Log.i("FileUploadService","========="+fue);
	}
}
